package ar.edu.unq.leezsi.html;

import ar.edu.unq.leezsi.html.head.Head;

public class Page<T> extends OpenCloseComponent<T> {

	private final Head<T> head;

	public Page() {
		this.head = new Head<T>();
		this.add(this.head);
		this.setTitle("Hola mundo");
	}

	protected Head<T> getHead() {
		return this.head;
	}

	public final Page<T> setTitle(String title) {
		this.getHead().setTitle(title);
		return this;
	}

	@Override
	protected String tag() {
		return "html";
	}

}
